<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// index 模块
Route::get('/', 'index/index');
Route::get('/index/demo', 'index/demo');


// admin 模块
Route::get('admin/index', 'admin/index/index');
Route::get('admin/login', 'admin/admin/login');


//Route::get('admin/visitRecord/index', 'admin/VisitRecord/index');


/// api 模块
Route::post('api/admin/login', 'api/admin/login');
Route::rule('api/admin/logout', 'api/admin/logout');
Route::post('api/admin/add', 'api/admin/add');

Route::post('api/adminUser/list', 'api/AdminUser/index');
Route::post('api/adminUser/add', 'api/AdminUser/Add');
Route::post('api/adminUser/edit', 'api/AdminUser/edit');
Route::post('api/adminUser/delete', 'api/AdminUser/delete');


Route::post('api/adminBlessing/list', 'api/Blessing/adminList');
Route::post('api/adminBlessing/add', 'api/Blessing/Add');
Route::post('api/adminBlessing/edit', 'api/Blessing/edit');
Route::post('api/adminBlessing/delete', 'api/Blessing/delete');


Route::rule('api/index/index', 'api/Index/index');

Route::post('api/blessing/list', 'api/Blessing/index');

Route::post('api/visitRecord/add', 'api/VisitRecord/add');
Route::post('api/adminVisitRecord/list', 'api/VisitRecord/index');


Route::rule('api/user/list', 'api/User/index');
Route::rule('api/user/add', 'api/User/add');

return [

];
